/**
 * 
 */
package by.jtraining.london.model;

import java.io.Serializable;

import javax.persistence.Entity;

import com.google.common.base.Objects;

/**
 * @author Irina Pakhomova
 * 
 */
@Entity
public class Admin extends User implements Serializable {
	private static final long serialVersionUID = 1012752147761722L;

	Admin() {};

	public Admin(String firstName, String lastName, String email,
			String password) {

		super(firstName, lastName, email, password, true);
	}
	
	@Override
	public String toString() {
		return Objects.toStringHelper(this).add("id", getId())
				.add("First name", getFirstName()).add("Last name", getLastName())
				.add("login", getLogin()).add("is active", getIsActive()).toString();
	}
}
